<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddPositionToOpenShopSiteLocationExamineLogs extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_site_location_examine_logs', function (Blueprint $table) {
            $table->unsignedTinyInteger('position')->default(0)->comment('审批职位 0-省总  1-选址负责人  2-其他')->after('orderNo');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_site_location_examine_logs', function (Blueprint $table) {
            $table->dropColumn('position');
        });
    }
}
